<html class="no-js" xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
	<body th:fragment="body">
  		<link rel="stylesheet" type="text/css" media="screen" th:href="@{/library/select2/css/select2.min.css}" />
		<script type="text/javascript" th:src="@{'/js/rolesInfo/rolesInfo.js'}"></script>
		<script type="text/javascript" th:src="@{'/js/rolesPermissionInfo/rolesPermissionInfo.js'}"></script>
		<script type="text/javascript" th:src="@{'/js/permissionInfo/permissionInfo.js'}"></script>
  		<script type="text/javascript" th:src="@{/library/select2/js/select2.full.min.js}"></script>
		<div class="am-panel am-panel-default">
			<hr/>
			<div class="am-g">
				<div class="am-u-sm-10 am-u-md-8">
					<form id="rolesInfo_form" class="am-form am-form-horizontal" method="post">
					
						<div class="am-form-group">
				            <label for="rolesId" class="am-u-sm-3 am-form-label">rolesId</label>
				            <div class="am-u-sm-9" th:if="${param.rolesId} == null">
					            <input type="text" id="rolesId" name="rolesId" placeholder="rolesId" required/>
				            </div>
				            <div class="am-u-sm-9" th:if="${param.rolesId} != null">
					            <input type="text" id="rolesId" name="rolesId" th:value="${param.rolesId[0]}" placeholder="" readonly="readonly" />
				            </div>
			            </div>
			            
			            <div class="am-form-group">
				            <label for="rolesName" class="am-u-sm-3 am-form-label">rolesName</label>
				            <div class="am-u-sm-9">
					            <input type="text" id="rolesName" name="rolesName" placeholder="rolesName" required/>
				            </div>
			            </div>
			            
			            <div class="am-form-group">
				            <label for="permissionInfos" class="am-u-sm-3 am-form-label">permissionInfos</label>
				            <div class="am-u-sm-9">
				            	<select id="permissionInfos" name="permissionInfos" class="js-example-responsive" multiple="multiple" style="width: 75%"></select>
				            </div>
			            </div>
			            
			            <div class="am-form-group">
				            <div class="am-u-sm-9 am-u-sm-push-3">
				            	<button type="button" id="saveOrUpdate" class="am-btn am-btn-primary" th:text="${param.rolesId} == null ? '新增' : '修改'"></button>
				            </div>
			            </div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>